fix: Add WebKit FairPlay DRM fallback for AirPlay on newer OS versions#1277
Merged
cjpillsbury merged 14 commits intomuxinc:mainfrom Feb 26, 2026
Merged
Conversation
|
@spuppo-mux is attempting to deploy a commit to the Mux Team on Vercel. A member of the Team first needs to authorize it. |
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
cjpillsbury
reviewed
Feb 18, 2026
cjpillsbury
reviewed
Feb 18, 2026
This was referenced Feb 19, 2026
cjpillsbury
reviewed
Feb 19, 2026
cjpillsbury
reviewed
Feb 19, 2026
cjpillsbury
reviewed
Feb 19, 2026
cjpillsbury
reviewed
Feb 19, 2026
cjpillsbury
reviewed
Feb 19, 2026
cjpillsbury
reviewed
Feb 19, 2026
cjpillsbury
reviewed
Feb 19, 2026
cjpillsbury
requested changes
Feb 19, 2026
Contributor
cjpillsbury
left a comment
There was a problem hiding this comment.
A couple of minor callouts to fix/respond to, but this is looking great!
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Merged
cjpillsbury
pushed a commit
that referenced
this pull request
Feb 26, 2026
🤖 I have created a release *beep* *boop* --- <details><summary>@mux/mux-player: 3.11.5</summary> ## [3.11.5](https://github.com/muxinc/elements/compare/@mux/[email protected]...@mux/[email protected]) (2026-02-26) ### Dependencies * The following workspace dependencies were updated * dependencies * @mux/mux-video bumped from 0.30.2 to 0.30.3 * @mux/playback-core bumped from 0.33.1 to 0.33.2 </details> <details><summary>@mux/mux-player-astro: 3.11.5</summary> ## [3.11.5](https://github.com/muxinc/elements/compare/@mux/[email protected]...@mux/[email protected]) (2026-02-26) ### Dependencies * The following workspace dependencies were updated * dependencies * @mux/mux-player bumped from 3.11.4 to 3.11.5 * @mux/playback-core bumped from 0.33.1 to 0.33.2 </details> <details><summary>@mux/mux-player-react: 3.11.5</summary> ## [3.11.5](https://github.com/muxinc/elements/compare/@mux/[email protected]...@mux/[email protected]) (2026-02-26) ### Dependencies * The following workspace dependencies were updated * dependencies * @mux/mux-player bumped from 3.11.4 to 3.11.5 * @mux/playback-core bumped from 0.33.1 to 0.33.2 </details> <details><summary>@mux/playback-core: 0.33.2</summary> ## [0.33.2](https://github.com/muxinc/elements/compare/@mux/[email protected]...@mux/[email protected]) (2026-02-26) ### Bug Fixes * **core:** Add WebKit FairPlay DRM fallback for AirPlay on newer OS versions ([#1277](#1277)) ([f283080](f283080)) </details> <details><summary>@mux/mux-audio: 0.15.22</summary> ## [0.15.22](https://github.com/muxinc/elements/compare/@mux/[email protected]...@mux/[email protected]) (2026-02-26) ### Bug Fixes * **core:** Add WebKit FairPlay DRM fallback for AirPlay on newer OS versions ([#1277](#1277)) ([f283080](f283080)) ### Dependencies * The following workspace dependencies were updated * dependencies * @mux/playback-core bumped from 0.33.1 to 0.33.2 </details> <details><summary>@mux/mux-audio-react: 0.15.22</summary> ## [0.15.22](https://github.com/muxinc/elements/compare/@mux/[email protected]...@mux/[email protected]) (2026-02-26) ### Miscellaneous Chores * **@mux/mux-audio-react:** Synchronize audio versions ### Dependencies * The following workspace dependencies were updated * dependencies * @mux/playback-core bumped from 0.33.1 to 0.33.2 </details> <details><summary>@mux/mux-video: 0.30.3</summary> ## [0.30.3](https://github.com/muxinc/elements/compare/@mux/[email protected]...@mux/[email protected]) (2026-02-26) ### Bug Fixes * **core:** Add WebKit FairPlay DRM fallback for AirPlay on newer OS versions ([#1277](#1277)) ([f283080](f283080)) ### Dependencies * The following workspace dependencies were updated * dependencies * @mux/playback-core bumped from 0.33.1 to 0.33.2 </details> <details><summary>@mux/mux-video-react: 0.30.3</summary> ## [0.30.3](https://github.com/muxinc/elements/compare/@mux/[email protected]...@mux/[email protected]) (2026-02-26) ### Miscellaneous Chores * **@mux/mux-video-react:** Synchronize video versions ### Dependencies * The following workspace dependencies were updated * dependencies * @mux/playback-core bumped from 0.33.1 to 0.33.2 </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1261
This PR addresses a bug in Apple devices on newer OS versions when attempting to cast protected media using AirPlay. If the sending device is on OS version 26.1 or 26.2, playback will fail if when casting because of a
NotSupportedErroronsession.generateRequestcall.Summary
index.tsintoeme-fairplay.tsmodule.webkit-fairplay.ts, a legacy FairPlay implementation using WebKit-prefixed APIs (WebKitMediaKeys,webkitneedkey, etc) to work around bug.session.generateRequestfails withNotSupportedErrorduring AirPlay, the player tears down the EME session and re-initializes using the legacy WebKit FairPlay setup.muxMediaState(and get it via newgetCoreReference()).mux-videoandmux-audioto derive#corefrommuxMediaStateinstead of owning it as a private field, ensuring they always see the latest core after a DRM fallback re-initialization.New module:
eme-fairplay.tssetupEmeNativeFairplayDRM()the standard EME-based FairPlay flow (previously inlined inindex.ts).fallbackToWebkitFairplay()New module:
webkit-fairplay.tssetupWebkitNativeFairplayDRM(), the legacy WebKit-prefixed FairPlay flowWebKitMediaKeys,webkitneedkey,webkitkeymessage, andwebkitkeyerroreventsChanges in index.ts
setupNativeFairplayDRM()now branches between EME and WebKit paths based on internalprops.useWebkitFairplaycommonConfigfallbackToWebkitFairplaycallback oninitialize()tears down, setsuseWebkitFairplay = true, re-initializes, then restores playback position and statemuxMediaStateso components always get the current coreChanges in mux-video / mux-audio
#corechanged from a stored field to a getter that reads fromgetCoreReference(this.nativeEl), keeping it in sync after fallback re-initialization